package org.example.smart.main;

import com.briup.smart.env.client.Client;
import com.briup.smart.env.client.Gather;
import com.briup.smart.env.entity.Environment;
import com.briup.smart.env.server.Server;
import org.example.smart.Client.ClientImpl;
import org.example.smart.Client.GatherBackupImpl;
import org.example.smart.Client.GatherImpl;
import org.example.smart.server.ServerImpl;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class ClientMain {
    public static void main(String[] args) {
//        GatherImpl gather = new GatherImpl();
//        Collection<Environment> list = gather.gather();
//        ClientImpl client = new ClientImpl();
//        client.send(list);
        GatherBackupImpl gather = new GatherBackupImpl();
        Collection<Environment> list = gather.gather();
        ClientImpl client = new ClientImpl();
        client.send(list);
//        for (Environment environment:
//        list){
//            System.out.println(environment);
//        }
//        System.out.println("采集到的对象的个数" + list.size());
    }
}
